﻿CREATE TABLE [dbo].[Linea] (
    [Id]        INT          IDENTITY (1, 1) NOT NULL,
    [Nombre]    VARCHAR (50) NOT NULL,
    [EmpresaId] INT          NOT NULL,
    [Activo] BIT NOT NULL DEFAULT 0, 
    CONSTRAINT [PK_Linea] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_Linea_Empresa] FOREIGN KEY ([EmpresaId]) REFERENCES [dbo].[Empresa] ([Id])
);

